#ifndef TBFWIDGET_H
#define TBFWIDGET_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QPolygon>
#include <QImage>
#include <QPainterPath>
namespace Ui {
class TBFWidget;
}

class TBFWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TBFWidget(QWidget *parent = 0);
    ~TBFWidget();
    void paintEvent(QPaintEvent*);
    void setEffDmd(bool tracCmd, bool brkCmd, bool FBCmd, uint16_t value);
private:
    void drawScales(QPainter *painter);
    void drawTBFValue(QPainter *painter);
private:
    Ui::TBFWidget *ui;
    int m_DrawEffDmd;
    int m_EffDmd;
    bool m_xTracCmd;
};

#endif // TBFWIDGET_H
